home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_11_09
/
1109112a
< prev
next >
Wrap
Text File
|
1993-07-11
|
257b
|
21 lines
/* array4.c: Indexing a string literal */
#include <stdio.h>
main()
{
int i;
for (i = 0; i < 10; i += 2)
{
char c = "0123456789"[i];
putchar(c);
}
putchar('\n');
return 0;
}
/* Output
02468
*/